//
//  SearchGeocodeResultModel.h
//  o_amap
//
//  Created by Q神 on 2021/4/20.
//

#import <Foundation/Foundation.h>
#import <AMapSearchKit/AMapSearchKit.h>
#import "LatLngModel.h"

@class GeocodeModel;
@class GeocodeQueryModel;

NS_ASSUME_NONNULL_BEGIN

@interface SearchGeocodeResultModel : NSObject

@property (nonatomic, strong) NSArray<GeocodeModel *> *geocodeAddressList;
@property (nonatomic, strong) GeocodeQueryModel *geocodeQuery;


+ (SearchGeocodeResultModel *)createGeocodeResultModelWithResponse:(AMapGeocodeSearchResponse *)response;

@end


@interface GeocodeQueryModel : NSObject

@property (nonatomic, copy) NSString *city;
@property (nonatomic, copy) NSString *locationName;

@end


@interface GeocodeModel : NSObject

///格式化地址
@property (nonatomic, copy) NSString     *formatAddress;
///所在省/直辖市
@property (nonatomic, copy) NSString     *province;
///城市名
@property (nonatomic, copy) NSString     *city;
///城市编码
@property (nonatomic, copy) NSString     *citycode;
///区域名称
@property (nonatomic, copy) NSString     *district;
///区域编码
@property (nonatomic, copy) NSString     *adcode;
///乡镇街道
@property (nonatomic, copy) NSString     *township;
///社区
@property (nonatomic, copy) NSString     *neighborhood;
///楼
@property (nonatomic, copy) NSString     *building;
///坐标点
@property (nonatomic, strong) LatLngModel *latLng;
///匹配的等级
@property (nonatomic, copy) NSString     *level;
///国家（since 7.4.0）仅海外生效
@property (nonatomic, copy)   NSString   *country;
///国家简码（since 7.4.0）仅海外生效
@property (nonatomic, copy)   NSString   *postcode;

@end

NS_ASSUME_NONNULL_END
